Plotting Line Chart - Python Mathplotlib Module
Author: Al-mamun Sarkar
Date: 2020-04-02 06:55:55
Plotting Line Chart - Python Mathplotlib Module. The following code shows how to plot a line chart using pyplot of matplotlib module.
Import module:
import matplotlib.pyplot as plt
Create Data:
x = [10, 25, 30]
y = [30, 60, 40]
Plot chart:
plt.plot(x, y)
plt.show()